package cn.caplike.demo.netty.in_outbound;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;

public class MyServerChannelInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) {
        final ChannelPipeline pipeline = ch.pipeline();

        pipeline.addLast(); // 将从客户端接受过来的字节信息转换成 Long 类型
        pipeline.addLast(new MyServerChannelInboundHandler());
    }
}
